package com.bit.springboot_1;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {


    @RequestMapping("/world")
    public String hello(){

        return "hello world!";
    }

    @RequestMapping("/Spring")
    public String Spring(){
        return "这是Spring方法返回的结果";
    }


}
